package com.usian.search.service;

/**
 * @author zlm
 * @version 1.0
 * @date 2022/9/28 19:50
 */

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.search.dtos.UserSearchDto;
import com.usian.model.search.pojos.ApUserSearch;

/**
 * <p>
 * APP用户搜索信息表 服务类
 * </p>
 *
 * @author itusian
 */
public interface ApUserSearchService extends IService<ApUserSearch> {

    /**
     * 查询搜索历史
     *
     * @param userSearchDto
     * @return
     */
    ResponseResult findUserSearch(UserSearchDto userSearchDto);

    /**
     * 删除搜索历史
     *
     * @param userSearchDto
     * @return
     */
    ResponseResult delUserSearch(UserSearchDto userSearchDto);

    /**
     * 插入搜索记录
     *
     * @param
     * @return
     */
    void insert(Integer entryId, String searchWords);

}
